package com.yunji.framework_template.books.biz.service;

import com.yunji.framework_template.books.orm.persistence.model.BooksComment;
import com.yunji.framework_template.books.orm.persistence.mapper.BooksCommentMapper;
import com.yunji.framework_template.common.web.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by fenglibin on 2019/01/24.
 */
@Service
public class BooksCommentService {

	@Autowired
    private BooksCommentMapper booksCommentMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return booksCommentMapper.deleteByPrimaryKey(id);
    }

    public int insert(BooksComment record){
        return booksCommentMapper.insert(record);
    }

    public int insertSelective(BooksComment record){
        return booksCommentMapper.insertSelective(record);
    }

    public BooksComment selectByPrimaryKey(Integer id){
        return booksCommentMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(BooksComment record){
        return booksCommentMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BooksComment record){
        return booksCommentMapper.updateByPrimaryKey(record);
    }

    public List<BooksComment> selectByCondition(BooksComment record){
        return booksCommentMapper.selectByCondition(record);
    }

    public List<BooksComment> selectAll(){
        return booksCommentMapper.selectAll();
    }

    public List<BooksComment> selectByPage(Page<BooksComment> page){
        return booksCommentMapper.selectByPage(page);
    }

    public Integer count(BooksComment record){
        return booksCommentMapper.count(record);
    }

    public int deleteByCondition(BooksComment record){
        return booksCommentMapper.deleteByCondition(record);
    }

}
